package cn.tedu.account.service;

import cn.tedu.account.mapper.AccountMapper;
import cn.tedu.account.tcc.AccountTCC;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
@Service
public class AccountServiceImpl implements AccountService {
   @Autowired
   private AccountTCC tcc;

    @Override
    public void decrease(Long userId, BigDecimal money) {
       tcc.prepare(null, userId, money);//上下文为空
    }
}
